package cn.mes.module.mes.controller.admin.baseworkshop.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import com.alibaba.excel.annotation.*;
import cn.mes.framework.excel.core.annotations.DictFormat;
import cn.mes.framework.excel.core.convert.DictConvert;

@Schema(description = "管理后台 - 车间信息 Response VO")
@Data
@ExcelIgnoreUnannotated
public class BaseWorkShopRespVO {

    @Schema(description = "车间ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "7202")
    @ExcelProperty("车间ID")
    private String id;

    @Schema(description = "车间编码", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("车间编码")
    private String workShopCode;

    @Schema(description = "车间名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
    @ExcelProperty("车间名称")
    private String workShopName;

    @Schema(description = "车间用途")
    @ExcelProperty("车间用途")
    private String workShopUse;

    @Schema(description = "备注信息")
    @ExcelProperty("备注信息")
    private String note;

    @Schema(description = "显示顺序")
    private Integer orderNo;

    @Schema(description = "车间状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty(value = "车间状态", converter = DictConvert.class)
    @DictFormat("mes_common_status") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Boolean status;

    @Schema(description = "PLC编号")
    private String plcId;

}